/******************************************************************************
 * The contents of this file are subject to the   JDI License  Version 1.0
 * ("License"); You may not use this file except in compliance with the License
 * Software distributed under the License is distributed on an  "AS IS"  basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
 * the specific language governing rights and limitations under the License.
 * The Initial Developer of the Original Code is 陈慧然. Portions created by 
 * 陈慧然 are Copyright 陈慧然.
 * All Rights Reserved.
 *
 *              Contact john_holen@163.com for licensing alternatives.
 *
 *****************************************************************************/


package org.peony.standard.db;

import java.sql.Connection;

/**
 *  
 *
 *  @author     陈慧然
 *  @version    Id: ConnectionProvider.java, v 0.000 2008-7-8 下午02:00:27 陈慧然 Exp
 */
public interface SIJDBCConnectionProvider {
	/**
	 * 获得连接
	 * @return
	 */
	public Connection getConnection();
	/**
	 * 关闭所有资源
	 */
	public void close();
	/**
	 * 关闭一个连接
	 * @param conn
	 */
	public void closeConnection(Connection conn);
}
